﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Ghy.Soft.Domain.Entities;

namespace Ghy.Soft.Domain.Mappings
{
    public class AdminMap : ClassMap<Admin>
    {
        public AdminMap()
        {
            Id(m => m.AdminId);
            Map(m => m.AdminName);
            Map(m => m.Password);
            Map(m => m.TrueName);
            Map(m => m.Tellphone);
            Map(m => m.State).Length(100);
            Map(m => m.Permission);
        }
    }
}
